package org.zh.sh.vll;

import org.zh.sh.util.http.Controller;
import org.zh.sh.util.http.RequestMapping;

import java.util.Map;

import static org.zh.sh.config.GlobalStatic.proxyTeacherSV;

@Controller
public class TeacherVLL {


    @RequestMapping(value = "/teacher/insert")
    public Map<String, Object> insert(Map<String, Object> teacher) {
        return proxyTeacherSV.insert(teacher);
    }

    @RequestMapping(value = "/teacher/insertVoid")
    public void insertVoid(Map<String, Object> teacher) {
        proxyTeacherSV.insert(teacher);
    }

    @RequestMapping(value = "/teacher/updateById")
    public int updateById(Map<String, Object> teacher) {
        return proxyTeacherSV.updateById(teacher);
    }

    @RequestMapping(value = "/teacher/queryById")
    public Map<String, Object> queryById(Long id) {
        return proxyTeacherSV.queryById(id);
    }

    @RequestMapping(value = "/teacher/deleteById")
    public int deleteById(Long id) {
        return proxyTeacherSV.deleteById(id);
    }
}
